<template>
	<view class="temp_content">
		<view class="temp_img">
			<image :src="brief.img"></image>
		</view>
		<view class="temp_bottom">
			<view class="bottom_text">
				<view class="bottom_tit">{{brief.tit}}</view>
				<view class="bottom_des">{{brief.des}}</view>
			</view>
			<view class="bottom_start" @click="gotoSur(brief.id)">
				开始测试
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['brief'],
		name: "surveytemplate",
		data() {
			return {

			};
		},
		methods: {
			gotoSur(e) {
				let id=e;
				uni.navigateTo({
					url: '/pages/surveyDes/surveyDes?id='+id,
					success: res => {},
					fail: () => {},
					complete: () => {}
				});
			}
		}
	}
</script>

<style lang="less">
	.temp_content {
		margin-top: 30rpx;
		height: 340rpx;
		width: 680rpx;
		border: 1px lightgray solid;
		border-radius: 20rpx;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		box-shadow: 1px 1px 1px 1px lightgray;

		.temp_img {
			height: 240rpx;
			width: 680rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.temp_bottom {
			height: 90rpx;
			width: 650rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.bottom_text {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				align-items: center;

				.bottom_tit {
					width: 200rpx;
					overflow: hidden;
					font-size: 25rpx;
					color: black;
				}

				.bottom_des {
					overflow: hidden;
					width: 200rpx;
					margin-top: 10rpx;
					font-size: 20rpx;
					color: gray;
				}
			}

			.bottom_start {
				text-align: center;
				width: 120rpx;
				padding: 5rpx;
				border: 1px #c8adc4 solid;
				border-radius: 20rpx;
				box-shadow: 1px 1px 1px 1px lightgray;
				background-color: #c8adc4;
				;
				color: white;
				font-size: 25rpx;
			}
		}
	}
</style>
